import request from "@/request/index.js";

export function getPatientList(params) {
  return request.get({
    url: "/app-api/health/user/patient/list",
    params: params || {},
    custom: {
      title: "获取就诊人列表",
      authentication: true,
    },
  });
}

export function patientCreate(data) {
  return request.post({
    url: "/app-api/health/user/patient/create",
    data: data || {},
    custom: {
      title: "新增就诊人",
      authentication: true,
    },
  });
}
export function patientUpdate(data) {
  return request.put({
    url: "/app-api/health/user/patient/update",
    data: data || {},
    custom: {
      title: "更新就诊人",
      authentication: true,
    },
  });
}
export function patientDelete(params) {
  return request.delete({
    url: "/app-api/health/user/patient/delete",
    params: params || {},
    custom: {
      title: "删除就诊人",
      authentication: true,
    },
  });
}
export function patientGet(params) {
  return request.get({
    url: "/app-api/health/user/patient/get",
    params: params || {},
    custom: {
      title: "获取就诊人",
      authentication: true,
    },
  });
}
export function dictData(params) {
  return request.get({
    url: "/app-api/system/dict-data/type",
    params: params || {},
    custom: {
      title: "字典查询",
      authentication: true,
    },
  });
}
export function areaTree(params) {
  return request.get({
    url: "/app-api/system/area/tree",
    params: params || {},
    custom: {
      title: "地区查询",
      authentication: true,
    },
  });
}